﻿using Microsoft.Xna.Framework;
using Syngine.Input;

namespace Syngine
{
	/// <summary>
	/// 
	/// </summary>
	public abstract class GameBase : Game
	{
		protected GameBase()
		{
			Controller = new GameController(this);
			Components.Add(Controller);
			GameContext.Set(this);
			GameContext.Set(Controller);
		}

		protected GameBase(GameController gameController)
		{
			Controller = gameController;
			Components.Add(gameController);
			GameContext.Set(this);
			GameContext.Set(Controller);
		}

		protected GameController Controller { get; private set; }
	}
}
